﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Entity;
using BusinessLogic;

namespace Avatar
{
    /// <summary>
    /// Interaction logic for SupportedSites.xaml
    /// </summary>
    public partial class SupportedSites : UserControl
    {
        public SupportedSites()
        {
            InitializeComponent();
        }

        private void loginButton_Click(object sender, RoutedEventArgs e)
        {
            LoginForm loginForm = new LoginForm();
            loginForm.ShowDialog(Globals.Ribbons.Ribbon1.options);  // 以模态对话框打开
        }

        private void logoutButton_Click(object sender, RoutedEventArgs e)
        {
            UserCredentialLogic.DestroyCredentialInfo();
            System.Windows.Forms.MessageBox.Show("用户信息已注销.");
        }
    }
}
